------------------------------------------------------------------------------------------------------
--Eva
------------------------------------------------------------------------------------------------------

local ShortKeyAddon = EVA.Addon:New()
ShortKeyAddon.Name = "ShortKey"
ShortKeyAddon.Version = "4.7"
ShortKeyAddon.Description = "Binding shortcut key for your all action. By simonw. URL[http://cwowaddon.com/]"
EVA.AddonRegistry:Add(ShortKeyAddon)

local function DoSetting(context)
	local cmd

	if (context and context.Slash_Arg ~= "") then
		cmd = string.lower(context.Slash_Args[1] or "")
	end

	ShortKey.DoSetting(cmd)
end

local initBlock = {
	Name = "",
	Description = "",
	RequestTypes = {"Event"},
	Events = {"PLAYER_LOGIN"},
	Commands = {
		{Description = "", Function = ShortKey.Init},
	}
}

local settingBlock = {
	Name = "",
	Description = "",
	RequestTypes = {"SlashCommand"},
	SlashCommands = {"/shortkey", "/sk"},
	Commands = {
		{Description = "", Function = DoSetting},
	}
}

ShortKeyAddon:Add(EVA.Block:New(initBlock))
ShortKeyAddon:Add(EVA.Block:New(settingBlock))
--ShortKeyAddon:Add(EVA.Block:New(loaditemBlock))